<?php

function magic_modifier_upfiles($upfiles_id, $type = '',$magic_vars = ''){
    global $mysql;
    $type = !empty($type)?$type:"fileurl";
 	$sql = "select `{$type}` from `{users_upfiles}` where id='{$upfiles_id}'";
    $result = $mysql->db_fetch_array($sql);
    return $result[$type];
}
?>
